<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: blfwk::DataSource Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classblfwk_1_1_data_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classblfwk_1_1_data_source-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">blfwk::DataSource Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>Abstract base class for data sources.  
 <a href="classblfwk_1_1_data_source.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="src_2blfwk_2_data_source_8h_source.html">DataSource.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for blfwk::DataSource:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="classblfwk_1_1_data_source__inherit__graph.svg" width="395" height="206"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for blfwk::DataSource:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="classblfwk_1_1_data_source__coll__graph.svg" width="148" height="127"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblfwk_1_1_data_source_1_1_pattern_segment.html">PatternSegment</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is a special type of segment containing a repeating pattern.  <a href="classblfwk_1_1_data_source_1_1_pattern_segment.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblfwk_1_1_data_source_1_1_segment.html">Segment</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Discrete, contiguous part of the source's data.  <a href="classblfwk_1_1_data_source_1_1_segment.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:abbf11da8bfe579daeb6a036855828343"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abbf11da8bfe579daeb6a036855828343"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblfwk_1_1_data_source.html#abbf11da8bfe579daeb6a036855828343">DataSource</a> ()</td></tr>
<tr class="memdesc:abbf11da8bfe579daeb6a036855828343"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:abbf11da8bfe579daeb6a036855828343"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15d6cb8713f5f068e59cb19adf6bc4f0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a15d6cb8713f5f068e59cb19adf6bc4f0"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblfwk_1_1_data_source.html#a15d6cb8713f5f068e59cb19adf6bc4f0">~DataSource</a> ()</td></tr>
<tr class="memdesc:a15d6cb8713f5f068e59cb19adf6bc4f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a15d6cb8713f5f068e59cb19adf6bc4f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Data target</div></td></tr>
<tr class="memitem:ac9bb497fc9cf99267585d9fac3a3689d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac9bb497fc9cf99267585d9fac3a3689d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblfwk_1_1_data_source.html#ac9bb497fc9cf99267585d9fac3a3689d">setTarget</a> (<a class="el" href="classblfwk_1_1_data_target.html">DataTarget</a> *target)</td></tr>
<tr class="memdesc:ac9bb497fc9cf99267585d9fac3a3689d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the associated data target. <br /></td></tr>
<tr class="separator:ac9bb497fc9cf99267585d9fac3a3689d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a953ffa142790468e13ae3e3e76ff781a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a953ffa142790468e13ae3e3e76ff781a"></a>
<a class="el" href="classblfwk_1_1_data_target.html">DataTarget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblfwk_1_1_data_source.html#a953ffa142790468e13ae3e3e76ff781a">getTarget</a> () const </td></tr>
<tr class="memdesc:a953ffa142790468e13ae3e3e76ff781a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the associated data target. <br /></td></tr>
<tr class="separator:a953ffa142790468e13ae3e3e76ff781a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Segments</div></td></tr>
<tr class="memitem:a907aa98ba871d75079999921b9a99759"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a907aa98ba871d75079999921b9a99759"></a>
virtual unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblfwk_1_1_data_source.html#a907aa98ba871d75079999921b9a99759">getSegmentCount</a> ()=0</td></tr>
<tr class="memdesc:a907aa98ba871d75079999921b9a99759"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of segments in this data source. <br /></td></tr>
<tr class="separator:a907aa98ba871d75079999921b9a99759"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70f8d27828725a9c56bbb74d1ce0bd58"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a70f8d27828725a9c56bbb74d1ce0bd58"></a>
virtual <a class="el" href="classblfwk_1_1_data_source_1_1_segment.html">Segment</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblfwk_1_1_data_source.html#a70f8d27828725a9c56bbb74d1ce0bd58">getSegmentAt</a> (unsigned index)=0</td></tr>
<tr class="memdesc:a70f8d27828725a9c56bbb74d1ce0bd58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns segment number <em>index</em> of the data source. <br /></td></tr>
<tr class="separator:a70f8d27828725a9c56bbb74d1ce0bd58"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a3cdb5a580a82196100105f66237986b3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3cdb5a580a82196100105f66237986b3"></a>
<a class="el" href="classblfwk_1_1_data_target.html">DataTarget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblfwk_1_1_data_source.html#a3cdb5a580a82196100105f66237986b3">m_target</a></td></tr>
<tr class="memdesc:a3cdb5a580a82196100105f66237986b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Corresponding target for this source. <br /></td></tr>
<tr class="separator:a3cdb5a580a82196100105f66237986b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Abstract base class for data sources. </p>
<p>Data sources represent any sort of data that can be placed or loaded into a target region. Sources may be a single blob of data read from a file or may consist of many segments.</p>
<p>The three most important features of data sources are:</p><ul>
<li>Sources may be multi-segmented.</li>
<li>Sources and/or segments can have a "natural" or default target location.</li>
<li>The target for a source may be taken into consideration when the source describes itself. </li>
</ul>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="src_2blfwk_2_data_source_8h_source.html">src/blfwk/DataSource.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>blfwk</b></li><li class="navelem"><a class="el" href="classblfwk_1_1_data_source.html">DataSource</a></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:51 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
